projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e63c49
)
clk: clk-uclass: Assign clk->dev before call .of_xlate
author
Wenyou Yang
<
[email protected]
>
Tue, 27 Sep 2016 03:00:28 +0000
(11:00 +0800)
committer
Andreas Bießmann
<
[email protected]
>
Fri, 28 Oct 2016 16:37:14 +0000
(18:37 +0200)
In order to make clk->dev available in ops->of_xlate() to get the
clock ID from the 'reg' property of the clock node, assign the
clk->dev before calling ops->of_xlate().
Signed-off-by: Wenyou Yang <
[email protected]
>
Acked-by: Stephen Warren <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
drivers/clk/clk-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-uclass.c
b/drivers/clk/clk-uclass.c
index c42fff6ec2908ba801d8420011b7e55f4346da9a..153ceba702d621158c238322e1345516125fc31f 100644
(file)
--- a/
drivers/clk/clk-uclass.c
+++ b/
drivers/clk/clk-uclass.c
@@
-80,6
+80,9
@@
int clk_get_by_index(struct udevice *dev, int index, struct clk *clk)
__func__, ret);
return ret;
}
+
+ clk->dev = dev_clk;
+
ops = clk_dev_ops(dev_clk);
if (ops->of_xlate)